using System.Threading.Tasks;
using JGSY.CMS.LowCode.Platform.Application.DTOs;

namespace JGSY.CMS.LowCode.Platform.Application.Interfaces
{
    /// <summary>
    /// 监控服务接口。
    /// 提供系统监控告警、异常通知等监控相关功能接口定义。
    /// </summary>
    public interface IMonitorService
    {
        /// <summary>
        /// 发送监控告警
        /// </summary>
        /// <param name="message">告警消息</param>
        /// <param name="log">相关审计日志（可选）</param>
        /// <returns>发送任务</returns>
        Task SendAlertAsync(string message, AuditLogDto? log = null);
    }
}
